<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{text-align: center;}
    </style>
</head>
<body>
    <!-- 使用Ejs的模板引擎中的include引入公共页头代码块 -->
    <%- include('header'); -%>
    
    <h2>会员登录</h2>
    <form action="/login" method="post">
        <table width="250" border="0" align="center">
            <tr>
                <td align="right">账号：</td>
                <td><input type="text" name="uname" /></td>
            </tr>
            <tr>
                <td align="right">密码：</td>
                <td><input type="password" name="upass" /></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="登录"> &nbsp;
                    <input type="reset" value="重置">
                </td>
            </tr>
        </table>
        <br/>
        <div>测试账号的密码: 123</div>
        <div style="color:red"><%= typeof(errinfo)!="undefined"? errinfo : "" %></div>
    </form>
</body>
</html>